#ifndef RSGIS
#define RSGIS

#ifndef RSGISEXTERN
#ifdef WIN32
#  define RSGISEXTERN extern "C" __declspec( dllexport )
#  ifdef _MSC_VER
// do not warn about C bindings returing QString
#    pragma warning(disable:4190)
#  endif
#else
#  if defined(__GNUC__) || defined(__clang__)
#    define RSGISEXTERN extern "C" __attribute__ ((visibility ("default")))
#  else
#    define RSGISEXTERN extern "C"
#  endif
#endif
#endif

#endif // RSGIS

